package week4;

/**
 * Created by dell on 2017/3/17.
 */
public class NewRole {
    public static void main(String[] args) {
        demoSwordsMan();
        demoMagician();
    }
    static void demoSwordsMan(){
        //Game1 role1 = new Game1();
        //SwordsMan swordsMan = new Game1();
        Game1 role1 = new SwordsMan();
        SwordsMan swordsMan = (SwordsMan) role1;
    }
    static void demoMagician() {
        //Game1 role2 = new Game1();
        //Magician role2 = new Game1();
        Game1 role2 = new Magician();
        Magician magician = (Magician) role2;
    }
}
